package com.hxalex.simulationhandle.accessbilityService.receiver.wifi;

import android.util.Log;

import com.hxalex.simulationhandle.accessbilityService.manger.WifiManger;
import com.hxalex.simulationhandle.accessbilityService.receiver.base.BaseReceiver;

/**
 * Created by hx_Alex on 2018/5/26.
 */

public class OpenWifiReceiver extends BaseReceiver {
  

    public OpenWifiReceiver(WifiManger wifiManger) {
        super(wifiManger);
        FLAG="打开WIFI万能钥匙命令";
    }

    @Override
    public void doSomething() {
        if(!isPrintCommandMsg)
        {
            Log.w("OpenWifiReceiver","开始执行"+FLAG);
            isPrintCommandMsg=true;
        }
        wifiManger.openWifiHelper();
        commandCompleteListener.commandCompleteListener();
    }
}
